// 新增 ai-config 相关接口
import request from '@/utils/request'

export function listAIConfig(params) {
  return request({
    url: '/api/ai/ai-config/list',
    method: 'post',
    data: params,
    isQuery: true,
    timeout: 2000
  })
}

export function getAIConfig(data) {
  return request({
    isLoading: true,
    url: '/api/ai/ai-config/getDetail',
    method: 'post',
    data: data,
    isQuery: true,
    timeout: 2000
  })
}

export function addAIConfig(data) {
  return request({
    isLoading: true,
    url: '/api/ai/ai-config/add',
    method: 'post',
    data,
    isQuery: false,
    timeout: 2000
  })
}

export function updateAIConfig(data) {
  return request({
    isLoading: true,
    url: '/api/ai/ai-config/edit',
    method: 'post',
    data: data,
    isQuery: false,
    timeout: 2000
  })
}

export function delAIConfig(ids) {
  return request({
    isLoading: true,
    url: '/api/ai/ai-config/delete',
    method: 'delete',
    data: {
      ids: ids
    }
  })
}
